<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文档转换工具</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .container {
            max-width: 900px;
            width: 100%;
            background: white;
            border-radius: 20px;
            box-shadow: 0 25px 50px rgba(0,0,0,0.15);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
            padding: 40px;
            text-align: center;
        }

        .header h1 {
            font-size: 3em;
            margin-bottom: 15px;
            font-weight: 300;
        }

        .header p {
            font-size: 1.2em;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }

        .content {
            padding: 50px;
        }

        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .tool-card {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            cursor: pointer;
        }

        .tool-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
            border-color: #007bff;
        }

        .tool-icon {
            font-size: 4em;
            margin-bottom: 20px;
            display: block;
        }

        .tool-card h3 {
            font-size: 1.5em;
            margin-bottom: 15px;
            color: #333;
        }

        .tool-card p {
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .tool-btn {
            background: #007bff;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 25px;
            font-size: 1em;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .tool-btn:hover {
            background: #0056b3;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,123,255,0.3);
            color: white;
            text-decoration: none;
        }

        .features {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 30px;
            margin-top: 30px;
        }

        .features h3 {
            text-align: center;
            margin-bottom: 25px;
            color: #333;
            font-size: 1.5em;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .feature {
            text-align: center;
            padding: 20px;
        }

        .feature-icon {
            font-size: 2.5em;
            margin-bottom: 15px;
            display: block;
        }

        .feature h4 {
            margin-bottom: 10px;
            color: #333;
        }

        .feature p {
            color: #666;
            font-size: 0.9em;
        }

        .footer {
            background: #343a40;
            color: white;
            text-align: center;
            padding: 20px;
            font-size: 0.9em;
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }
            
            .content {
                padding: 30px 20px;
            }
            
            .tools-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>文档转换工具</h1>
            <p>专业的XML和PDF文档转换解决方案，支持多种格式转换，提供美观的HTML输出</p>
        </div>
        
        <div class="content">
            <div class="tools-grid">
                <div class="tool-card" onclick="window.location.href='/xml'">
                    <span class="tool-icon">📄</span>
                    <h3>XML转HTML</h3>
                    <p>将XML文档转换为美观的HTML格式，支持自定义XSLT模板，适用于基金报告、数据展示等多种场景</p>
                    <a href="/xml" class="tool-btn">开始转换</a>
                </div>
                
                <div class="tool-card" onclick="window.location.href='/pdf'">
                    <span class="tool-icon">📋</span>
                    <h3>PDF转HTML</h3>
                    <p>将PDF文档转换为HTML格式，保留文本内容和格式，支持文件上传和在线预览功能</p>
                    <a href="/pdf" class="tool-btn">开始转换</a>
                </div>
            </div>

            <div class="features">
                <h3>功能特色</h3>
                <div class="features-grid">
                    <div class="feature">
                        <span class="feature-icon">⚡</span>
                        <h4>快速转换</h4>
                        <p>高效的转换算法，支持大文件处理</p>
                    </div>
                    <div class="feature">
                        <span class="feature-icon">🎨</span>
                        <h4>美观输出</h4>
                        <p>现代化的HTML样式，响应式设计</p>
                    </div>
                    <div class="feature">
                        <span class="feature-icon">🔧</span>
                        <h4>灵活配置</h4>
                        <p>支持自定义模板和样式配置</p>
                    </div>
                    <div class="feature">
                        <span class="feature-icon">📱</span>
                        <h4>移动友好</h4>
                        <p>支持各种设备和屏幕尺寸</p>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="footer">
            <p>&copy; 2024 文档转换工具. 基于Spring Boot和Apache PDFBox构建</p>
        </div>
    </div>
</body>
</html> 